import { getToken } from '@/utils/auth'
import request from '@/utils/request'

export function getproductsmaterial(data) { // 查询报告数据
  return request({
    url: '/product/productsmaterial/getproductsmaterial',
    method: 'post',
    data
  })
}

export function postUpData(data) { // 查询报告数据
  return request({
    url: '/product/productsmaterial/postUpData',
    method: 'post',
    data
  })
}

export function selectname(data) { // 查询报告数据
  return request({
    url: '/product/productsmaterial/selectname',
    method: 'post',
    data
  })
}

export function query(params) { // 查询报告数据
  return request({
    url: '/product/productsmaterial/query',
    method: 'post',
    params
  })
}

export function querytubiao(params) { // 查询图表
  return request({
    url: '/product/productsmaterial/querytubiao',
    method: 'post',
    params
  })
}

export function insertProductsmaterial(data) { // 查询报告数据
  return request({
    url: '/product/productsmaterial/insertProductsmaterial',
    method: 'post',
    data
  })
}
